package lad02.test06;

public class Ladder {   double upperBottom;
    double lowerBottom;
    double high;
    double area;

    public void setUpperBottom(double upperBottom) {
        this.upperBottom = upperBottom;
    }

    public void setLowerBottom(double lowerBottom) {
        this.lowerBottom = lowerBottom;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public double getUpperBottom() {
        return upperBottom;
    }

    public double getLowerBottom() {
        return lowerBottom;
    }

    public double getHigh() {
        return high;
    }

    public double getArea() {
        area = (upperBottom + lowerBottom) * high /2;
        return area;
    }
}
